import { ActionButtonsTemplate } from '@/api/global/types'
import { createPreViewDialogStoreType } from '@/store/modules/preViewDialog'
import { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { UnwrapRef } from 'vue'
export type CurdData = {
  id: number
  sku: string
  cname: string
  code: string
  style_code: string
  category: string
  brand: string
  color_specs: string
  condition: string
  expiration_date: string
  hashrate: string
  computing_unit: string
  power: string
  weight: string
  gross_weight: string
  transport_weight: string
  dimensions: string
  gross_dimensions: string
  volume: string
  freight_tag: string
  model: string
  photo: string
  describe: string
  remark: string
  min_num: number
  estimated_ship_date: string
  cost: number
  sales_rate: number
  unit_price: number
  sales_price: number
  freight_price: number
  is_advance: string
  advance_ratio: number
  advance_amount: string
  creator: string
  create_time: string
  updater: string
  update_time: string
  is_del: number
  status: string
  is_parts: string
  step_discount: string
  pid: []
  product_name: string
  product_accessories_linked_data: []
  billing_weight: number
}

export type UploadItem = {
  url: string
  name: string
  response: string
}

export type FieldEnum = {}
export type SchemaConfig = {
  actionButtonsTemplate?: ActionButtonsTemplate
  fieldEnum?: FieldEnum
  tableDialogStoreID?: string
  tableDialogCurdSchema?: CrudSchema[]
  UploadArr?: UploadItem[]
  uploadList?: string[]
  attachmentPreViewIdStore?: createPreViewDialogStoreType
  brandList?: any
  currencyList?: any
  setValues?: UnwrapRef<any>
  categoryList?: any
}
